package com.baitiaojun.common.domain.model.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@ApiModel("分页结果")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PageResult<T> {

    @ApiModelProperty("数据总量")
    private Long total;

    @ApiModelProperty("分页数据")
    private List<T> data;


}
